<h3>Edit YM</h3>
<p>
    <?php foreach ($rows->result() as $ym): ?>
    </p>

    <table width="95%">
        <?php echo form_open('yms/update') ?>
        <tr><td width="125px"><b>Nama</b></td>
            <td><?php echo form_input('name', $ym->name, "class='pendek'") ?></td>
        </tr>
        <tr>
            <td><b>Email</b></td>
            <td><?php echo form_input('email', $ym->email, "class='sedang'") ?></td>
        </tr>
        <tr><td></td>
            <?php echo form_hidden('id', $ym->id)?>
            <td>
                <?php echo form_submit('submit', 'Update', "class='button'") ?>
            </td>
        </tr>
        <?php form_close() ?>
    </table>
<?php endforeach ?>
<?php echo anchor('yms/index', 'Back') ?>